﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>{$_mtagname$} - {$_mtagsortname$} - 成员 - {site.Name}</title>
<script type="text/javascript" src="{site.Dir}_data/SysConfig.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery-min.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery.jtemplates.js"></script>
<script type="text/javascript" src="{site.Dir}scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="{site.Dir}style/global.css" />
<script type="text/javascript" src="{site.Dir}scripts/front.js"></script>
<style type="text/css">
@import url({site.Dir}user/otherfiles/css/style.css);
</style>
<script type="text/javascript">
var pagesize=20;
var page=thispage();
(function(){
	$(document).ready(function() {
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		site.Dir + "mtag/view/ajax.aspx?mtagid={$_mtagid$}&oper=ajaxCheckPower",
			error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
			success:	function(data){
				$("#li"+data.ismember).show();
			}
		});
		var id = anchor();
		if(id!="1" && id!="2" && id!="3" && id!="4") id="0";
		aLoad(id);
	});
})();
function aLoad(s) {
	page = "1";
	if(s == "1")
		sort = "&sort=1";
	else if(s == "2")
		sort = "&sort=2";
	else if(s == "3")
		sort = "&sort=3";
	else if(s == "4")
		sort = "&sort=4";
	else
		sort = "";
	ajaxList(page);
}
function ajaxList(currentpage)
{
	//设置选项卡
	for(i=0; i<5; i++)
	{
		$$("tab"+i).className = "";
        
	}

	if(sort == "&sort=1")
		$$("tab1").className = "active";
	else if(sort == "&sort=2")
		$$("tab2").className = "active";
	else if(sort == "&sort=3")
		$$("tab3").className = "active";
	else if(sort == "&sort=4")
		$$("tab4").className = "active";
	else
		$$("tab0").className = "active";
	if(currentpage!=null) page=currentpage;
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"page="+currentpage+"&pagesize="+pagesize+"&time="+(new Date().getTime()),
		url:		"ajax.aspx?mtagid={$_mtagid$}&oper=ajaxGetList"+sort,
		error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
		success:	function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxList").setTemplateElement("tplList", null, {filter_data: false});
				$("#ajaxList").processTemplate(d);
				$("#ajaxPageBar").html(d.pagerbar);
				break;
			}
		}
	});
}
</script>
<script type="text/javascript" src="{site.Dir}user/otherfiles/scripts/ajax.js"></script>
</head>
<body>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="wrap">
	<div id="main">
		<div id="app_sidebar">
			<ul class="app_list" id="default_userapp">
				<li class="currently"><img src="{site.Dir}user/otherfiles/image/writer_v2/user_home.gif"><a href="{site.Dir}user/index/index.aspx">用户管理中心</a></li>
			</ul>
			<ul class="app_list" id="my_userapp">
				<li class="hr"></li>
				<li><img src="{site.Dir}user/otherfiles/image/writer_v2/contribute.gif"><a href="{site.Dir}user/contribute/index.aspx" target="_blank">我的投稿</a><em></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/message.gif"><a href="{site.Dir}user/pmlist/index.aspx">短信</a><em><a href="{site.Dir}user/pmsend/index.aspx">发送</a></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/friend.gif"><a href="{site.Dir}user/friendlist/index.aspx">好友</a><em><a href="{site.Dir}user/friendadd/index.aspx">添加</a></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/mtag.gif"><a href="{site.Dir}mtag/index/index.aspx">群组</a><em><a href="{site.Dir}user/mtag_thread">话题</a></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/favorite.gif"><a href="{site.Dir}user/favorite/index.aspx">收藏夹</a>
			</ul>
		</div>
		<div id="mainarea">
			<h2 class="title"> <img src="{site.Dir}user/otherfiles/image/app/mtag.gif"><a href="{site.Dir}network/mtaglist/index.aspx?{$_mtagid$}#{$_mtagsortid$}">{$_mtagsortname$}</a> - <a href="{site.Dir}mtag/view/index.aspx?mtagid={$_mtagid$}">{$_mtagname$}</a> </h2>
			<div class="tabs_header">
				<ul class="tabs">
					<li><a href="{site.Dir}mtag/view/index.aspx?mtagid={$_mtagid$}"><span>首页</span></a></li>
					<li><a href="{site.Dir}mtag/view_threadlist/index.aspx?mtagid={$_mtagid$}"><span>讨论区</span></a></li>
					<li><a href="{site.Dir}mtag/view_threadlist/index.aspx?mtagid={$_mtagid$}&isgood=1"><span>精华区</span></a></li>
					<li class="active"><a href="{site.Dir}mtag/view_memberlist/index.aspx?mtagid={$_mtagid$}"><span>成员列表</span></a></li>
					<li id="li0" style="display:none;" class="null"><a href="javascript:void(0);" id="mtag_join_{$_mtagid$}" onclick="ConfirmJoinMTag({$_mtagid$})">加入该群组</a></li>
					<li id="li1" style="display:none;" class="null"><a href="{site.Dir}mtag/view_threadadd/index.aspx?mtagid={$_mtagid$}">发起新话题</a></li>
				</ul>
			</div>
			<div class="h_status"> 成员分类：
				<a id="tab0" href="#0" onclick="aLoad('0');">全部成员</a> <span class="pipe">|</span>
				<a id="tab1" href="#1" onclick="aLoad('1');">群主</a> <span class="pipe">|</span>
				<a id="tab2" href="#2" onclick="aLoad('2');">普通成员</a> <span class="pipe">|</span>
				<a id="tab3" href="#3" onclick="aLoad('3');">禁止发言</a> <span class="pipe">|</span>
				<a id="tab4" href="#4" onclick="aLoad('4');">待审核成员</a> <span class="pipe">|</span>
			</div>
            <textarea id="tplList" style="display:none"><table cellspacing="6" cellpadding="0">
{#foreach $T.table as record}
<tr>
<td class="thumb"><table cellpadding="4" cellspacing="4">
<tr>
<td class="image"><div class="ar_r_t">
<div class="ar_l_t">
<div class="ar_r_b">
<div class="ar_l_b">
<a href="javascript:void(0);" onclick="ShowUserPage({$T.record.memberuserid});" title="{$T.record.memberusername}"><img src="{site.Dir}avatar/{$T.record.memberuserid}_l.jpg" onerror="this.src='{site.Dir}avatar/0_l.jpg'" alt="{$T.record.memberusername}" /></a>

</div>
</div>
</div>
</div></td>
<td><h6>
<a href="javascript:void(0);" onclick="ShowUserPage({$T.record.memberuserid});" title="{$T.record.memberusername}">{$T.record.memberusername}</a>  
{#if $T.record.memberpower == '9'}
(主群主)
{#/if}
{#if $T.record.memberpower == '8'}
(副群主)
{#/if}
{#if $T.record.memberpower == '0'}
(普通成员)
{#/if}
{#if $T.record.memberpower == '-1'}
(禁止发言)
{#/if}
{#if $T.record.memberpower == '-2'}
(待审核成员)
{#/if}
</h6>
<p class="l_status"><!--<a href="javascript:void(0);" onclick="" class="r_option" style="padding-left:0.5em;">管理该成员</a>--> <span class="r_option gray" id="mtag_member_{$T.record.memberuserid}"> </span> <a href="javascript:void(0);" onclick="ajaxAddFriend({$T.record.memberuserid})">加为好友</a> <span class="pipe">|</span> <a href="javascript:void(0);" onclick="ajaxAddMessage('{$T.record.memberuserid}','{$T.record.memberusername}')">发短消息</a></p>
<p><span class="gray">地区：</span><a href="javascript:void(0);">{$T.record.membercomefrom}</a></p></td>
</tr>
</table></td>
</tr>
{#/for}
</table></textarea>
			<div class="thumb_list" id="ajaxList"></div>
			<div id="ajaxPageBar" class="pages"> </div>
		</div>
		<!--/mainarea-->
		<div id="bottom"></div>
	</div>
	<!--/main-->
	<div id="footer" title=""> </div>
</div>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
